package reflect;

public class ClassDemo01 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class c1 = Integer.class;
        Class c2 = Integer.class;
        System.out.println(c1==c2);
        Class c3 = new Integer(100).getClass();
        System.out.println(c2==c3);
        Class c4 = Class.forName("java.lang.Integer");
        System.out.println(c3==c4);

        System.out.println(c4.getName());
        System.out.println(c4.getSimpleName());
        System.out.println(c4.getPackage().getName());
        System.out.println(c4.getSuperclass().getName());
        System.out.println(c4.getInterfaces()[0].getName());
        System.out.println(c4.getClassLoader());
        System.out.println(ClassDemo01.class.getClassLoader());


    }

}
